<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="renderer" content="webkit">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	    <link rel="stylesheet" type="text/css" href="../plugins/layui/css/layui.css" media="all"/>
	    <script src="../plugins/layui/layui.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
          <legend>添加新会员</legend>
        </fieldset>
        <form class="layui-form" action="">
		  <div class="layui-form-item">
		    <label class="layui-form-label">会员ID</label>
		    <div class="layui-input-inline">
		      <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">折扣</label>
		    <div class="layui-input-inline">
		      <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">会员等级</label>
		    <div class="layui-input-inline">
		      <select name="city" lay-verify="required">
		        <option value=""></option>
		        <option value="0">普通会员</option>
		        <option value="1">白银会员</option>
		        <option value="2">黄金会员</option>
		        <option value="3">钻石会员</option>
		        <option value="4">黑钻会员</option>
		      </select>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">最大限额</label>
		    <div class="layui-input-inline">
		      <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">最小限额</label>
		    <div class="layui-input-inline">
		      <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">存款</label>
		    <div class="layui-input-inline">
		      <input type="text" name="title" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		    </div>
		    
		  </div>
		  
		  
		  
		  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
		      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		  </div>
		</form>
		 
		<script>
		//Demo
		layui.use('form', function(){
		  var form = layui.form;
		  
		  //监听提交
		  form.on('submit(formDemo)', function(data){
//		    layer.msg(JSON.stringify(data.field));
//		    return false;
		  });
		});
		</script>
	</body>
</html>
